<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="./js/vue2.js"></script>
</head>

<body>
    <div id="app">
        <h2>{{message}}</h2>
        <p v-if="isShow">出来了 v-if</p>
        <p v-show="isShow">出来了 v-show</p>
        <!-- 条件渲染 -->
        <p v-if="score>=90">优秀</p>
        <p v-else-if="score>=80">良好</p>
        <p v-else-if="score>=60">及格</p>
        <p v-else>不及格</p>
    </div>

    <script>
        //创建Vue实例,得到 ViewModel
        let vm = new Vue({
            el: '#app',
            data: {
                message: '你好',
                isShow: true,
                score: 90,
            },
            methods: {}
        })
    </script>
</body>

</html>